Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix-colorpicker(Added a color picker for tiles) #1787

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Pawankalyan2023
Copy link

Hi , I have solved the issue please do review and ping me up for any further issues , thanks !

image

Copy link

@BlazarKnight BlazarKnight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

codacy is wrong this code looks fine

@Pawankalyan2023
Copy link
Author

can someone please merge this PR after reviewing

import KeyboardArrowRightIcon from '@material-ui/icons/KeyboardArrowRight';
import KeyboardArrowLeftIcon from '@material-ui/icons/KeyboardArrowLeft';
import Select from '@material-ui/core/Select';
import MenuItem from '@material-ui/core/MenuItem';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you undo the changes to the indentation?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see there is no intendation in line 15 to 18 in the main repo

};

handleChangeComplete = color => {
const colorhex = color.hex ? color.hex : '';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this safe?

We check whether color is truthy on line 414; I assume it's possible for it to be undefined so we could get a TypeError here. Perhaps we could move this inside the if statement or use optional chaining?

Suggested change
const colorhex = color.hex ? color.hex : '';
const colorhex = color?.hex || '';

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure , will make this change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants